<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Settings
{
    public $CI;
    public static $settings = array();
    
    public function __construct()
    {
        $this->CI =& get_instance();
        
        // get site settings
        self::$settings = $this->CI->config->item('settings');
    }
    
    public static function config($name)
    {
        return isset(self::$settings[$name]) ? self::$settings[$name] : '';
    }
}